<template>
  <div class="easyd-weixin-Box">
    <div class="shopMenuBox">
      <div class="shopMenuItemBox">
        <div class="shopMenuItem">
          <i class="fa fa-shopping-basket fa-lg"></i>商品收入记录
        </div>
      </div>
      <div class="shopMenuItemBox">
        <div class="shopMenuItem">
          <i class="fa fa-server fa-lg"></i>服务卡收入记录
        </div>
      </div>
    </div>
    <div class="addServiceBox">
      <div class="addServiceSelect">
        <input type="text" readonly placeholder="请选择相应商品/服务卡" @click="goSelectShopList">
        <div class="rightIcon">
          <i class="fa fa-angle-right fa-lg"></i>
        </div>
      </div>
      <div class="addServiceInput">
        <input type="text" placeholder="请输入金额">
        <div class="rightIcon">
          <i class="fa fa-angle-right fa-lg"></i>
        </div>
      </div>
      <div class="addServiceInput">
        <input type="text" placeholder="请输入数量">
        <div class="rightIcon">
          <i class="fa fa-angle-right fa-lg"></i>
        </div>
      </div>
      <div class="addServiceTextArea">
        <textarea placeholder="请输入备注"></textarea>
      </div>
    </div>
    <div class="addServiceBottomMenuBox">
      <div class="addServiceBottomMenuItem">提交</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imageDemoUrl:
        "http://testfileupload.oss-cn-beijing.aliyuncs.com/shangpin1.jpg"
    };
  },
  methods : {
    goSelectShopList(){
      this.$router.push({
        path : '/selectShopList'
      })
    }
  }
};
</script>

<style lang="stylus" scoped>
@import '~PUBLIC_CSS'
.shopMenuBox {
  width: 100%;
  justify-content: space-between;
  height: 60px;
  display: flex;
  box-sizing: border-box;
  margin-top: 15px;
  padding-left: 15px;
  padding-right: 15px;

  .shopMenuItemBox {
    width: 48%;
    box-sizing: border-box;
    height: 60px;
    float: left;

    .shopMenuItem {
      width: 100%;
      height: 50px;
      border-radius: 5px;
      text-align: center;
      line-height: 50px;
      border 1px solid #eee
      background #f5f5f5
      $itemStyle()

      i {
        color: #999;
        font-size: 14px;
        position: relative;
        top: -2px;
        right: 10px;
      }
    }
  }
}

.addServiceBox {
  position: absolute;
  top: 70px;
  bottom: 50px;
  left: 0px;
  right: 0px;
  padding-left: 15px;
  padding-right: 15px;
  font-size: 16px;
  overflow: auto;
  -webkit-overflow-scrolling : touch;
  box-sizing: border-box;

  .addServiceAddDetailItemBox {
    width: 100%;
    height: 50px;
    justify-content: space-between;
    display: flex;
    margin-bottom: 15px;

    .addServiceAddDetailItem {
      width: 48%;
      height: 50px;
      text-align: center;
      line-height: 50px;
      border-radius: 5px;
    }
  }

  .addServiceDetailBox {
    width: 100%;
    height: auto;
    margin-bottom: 15px;

    .addServiceDetailItem {
      width: 100%;
      height: 200px;
      background: #ffffff;
      position: relative;
      margin-bottom: 50px;

      &:last-child {
        margin-bottom: 15px;
      }

      .addServiceDetailItemClose {
        position: absolute;
        right: 0px;
        top: -40px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;

        i {
          font-size: 24px;
          color: #999;
        }
      }
    }

    .addServiceDetailTextItem {
      textarea {
        border-radius: 5px;
        width: 100%;
        border: 1px solid #eee;
        background #f5f5f5
        outline: none;
        padding: 10px 15px;
        box-sizing: border-box;
        height: 100%;
      }
    }

    .addServiceDetailImageItem {
      .addServiceDetailImageBox {
        width: 100%;
        border: 1px solid #eee;
        border-radius: 5px;
        height: 100%;

        .addServiceDetailImageUpload {
          width: 100%;
          text-align: center;
          font-size: 30px;
          color: #999;
          height: 100%;

          i {
            margin-top: 70px;
          }

          p {
            font-size: 16px;
            margin-top: 10px;
          }
        }

        img {
          border-radius: 5px;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }

  .addServiceTitle {
    width: 100%;
    height: 50px;
    line-height: 55px;
    text-indent: 16px;
  }

  .addServiceSelect {
    width: 100%;
    height: 45px;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;

    input {
      width: 100%;
      height: 100%;
      padding: 15px;
      box-sizing: border-box;
      padding-right: 50px;
      -webkit-appearance: none;
      border 1px solid #eee
      outline: none;
    }

    .rightIcon {
      width: 30px;
      position: absolute;
      height: 45px;
      right: 0px;
      color: #999;
      text-align: center;
      line-height: 45px;
      top: 0px;
    }
  }

  .addServiceInput {
    width: 100%;
    height: 45px;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    margin-top: 15px;

    input {
      width: 100%;
      height: 100%;
      padding: 15px;
      border: 1px solid #eee;
      -webkit-appearance: none;
      box-sizing: border-box;
      outline: none;
    }
  }

  .addServiceTextArea {
    width: 100%;
    height: 150px;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #eee;

    textarea {
      width: 100%;
      height: 100%;
      padding: 10px 15px;
      box-sizing: border-box;
      outline: none;
      border: 1px solid #eee;
      -webkit-appearance: none;
    }
  }
}

.addServiceBottomMenuBox {
  position: absolute;
  bottom: 0px;
  height: 50px;
  left: 0px;
  right: 0px;
  background: #eee;
  display: flex;
  justify-content: space-between;

  .addServiceBottomMenuItem {
    width: 100%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background: #FDDE6E;
  }
}
</style>

